﻿using System;
using System.Threading.Tasks;

namespace OpenFileTransfer.Wpf.Services
{
    public interface IUdpService
    {
        event Action<string, int, byte[]> DataReceived;

        void Startup();
        void Shutdown();
        Task SendAsync(string ip, int port, byte[] data);
        Task BroadcastAsync(int port, byte[] data);
    }
}
